﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace BLL.Services.Categories.Listing
{
    public class CategoryListing
    {
        public CategoryListing()
        {
            Categories = new List<Category>();
        }

        public CategoryFilter Filter { get; set; }

        public int Page { get; set; }

        public int TotalPages { get; set; }

        public int Size { get; set; }

        public int Direction { get; set; }

        public string Column { get; set; }

        public List<Category> Categories { get; set; }

        public class Category
        {
            public int CategoryId { get; set; }

            public string Name { get; set; }

            [Display(Name = "Count Books")]
            public int CountBooks { get; set; }
        }
    }
}